package com.googlecode.classgrep.grep.annotated;

import java.lang.annotation.Annotation;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.googlecode.classgrep.grep.annotated.internal.MethodGrepInternal;
import com.googlecode.classgrep.info.MethodInfo;


public class MethodGrep implements MethodGrepInternal{

	private final Map<String, List<MethodInfo>> annotated = new HashMap<String, List<MethodInfo>>();

	public Map<String, List<MethodInfo>> getAnnotatedMethodInfoMap() {
		return annotated;
	}

	public List<MethodInfo> findAnnotatedMethods(Class<? extends Annotation> annotation) {
		return annotated.get(annotation.getName());
	}
	
	

}
